package file;


import java.io.File;
import java.io.FileFilter;

/**
 *
 */
public class Test {
    public static void main(String[] args) {
        File file = new File("./src/main/java/file");
        if (file.isDirectory()) {
            File[] name = file.listFiles(f->f.getName().startsWith("D"));
            for (File sub : name) {
                System.out.println(sub.getName());
            }
        }
    }
}
